<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>center-6</title>
    <style>
        .parent{
           width: 300px;
           height: 300px;
           background: orange;
           text-align: center;
           display: table;
           }
       .son{
          display: table-cell;
          background-color: yellow;
          vertical-align: middle;
        }
    </style>
</head>
<body>
<div class="parent">
    <div class="son">nihao奥德赛科技</div>
 </div>
</body>
</html>
